package cn.ultrarisk.scadmin.manager.biz.user.entity;

import cn.ultrarisk.mybatis.extension.annotation.Table;

import java.io.Serializable;
import java.util.LinkedHashMap;
import java.util.Map;


/**
 * 用户实体类
 *
 * @author sevendlong(lin23871@163.com)
 * @date 2014/4/14
 * @since V1.0
 */
@Table(table = "admin", idColumn = Admin.ID, autoIncrement = true)
public class Admin implements Serializable {
    private static final long serialVersionUID = -3027609744268124429L;

    public static final String ROOT_ACCOUNT = "ADMIN";
    public static final String ROOT_PASSWORD = "SearchV2014";

    public final static String ID = "id";
    public final static String ACCOUNT = "account";
    public final static String PASSWORD = "password";
    public final static String NAME = "name";
    public final static String EMAIL = "email";
    public final static String DISABLED = "disabled";
    public final static String CREATE_TIME = "create_time";

    public static final Map<String, String> COLUMN_PROPERTY_MAP = new LinkedHashMap<String, String>();

    static {
        COLUMN_PROPERTY_MAP.put(ID, "id");
        COLUMN_PROPERTY_MAP.put(ACCOUNT, "account");
        COLUMN_PROPERTY_MAP.put(PASSWORD, "password");
        COLUMN_PROPERTY_MAP.put(NAME, "name");
        COLUMN_PROPERTY_MAP.put(EMAIL, "email");
        COLUMN_PROPERTY_MAP.put(DISABLED, "disabled");
        COLUMN_PROPERTY_MAP.put(CREATE_TIME, "createTime");
    }

    /**
     * id
     */
    private Integer id;
    /**
     * 账号
     */
    private String account;
    /**
     * 密码
     */
    private String password;
    /**
     * 姓名
     */
    private String name;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 是否禁用
     */
    private Boolean disabled;
    /**
     * 创建时间
     */
    private Long createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Boolean getDisabled() {
        return disabled;
    }

    public void setDisabled(Boolean disabled) {
        this.disabled = disabled;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }
}